package com.cnvai.cms.javabean.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class GrpArticlefileExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GrpArticlefileExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andArfidIsNull() {
            addCriterion("ARFID is null");
            return (Criteria) this;
        }

        public Criteria andArfidIsNotNull() {
            addCriterion("ARFID is not null");
            return (Criteria) this;
        }

        public Criteria andArfidEqualTo(BigDecimal value) {
            addCriterion("ARFID =", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidNotEqualTo(BigDecimal value) {
            addCriterion("ARFID <>", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidGreaterThan(BigDecimal value) {
            addCriterion("ARFID >", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFID >=", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidLessThan(BigDecimal value) {
            addCriterion("ARFID <", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFID <=", value, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidIn(List<BigDecimal> values) {
            addCriterion("ARFID in", values, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidNotIn(List<BigDecimal> values) {
            addCriterion("ARFID not in", values, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFID between", value1, value2, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFID not between", value1, value2, "arfid");
            return (Criteria) this;
        }

        public Criteria andArfarticleIsNull() {
            addCriterion("ARFARTICLE is null");
            return (Criteria) this;
        }

        public Criteria andArfarticleIsNotNull() {
            addCriterion("ARFARTICLE is not null");
            return (Criteria) this;
        }

        public Criteria andArfarticleEqualTo(BigDecimal value) {
            addCriterion("ARFARTICLE =", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleNotEqualTo(BigDecimal value) {
            addCriterion("ARFARTICLE <>", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleGreaterThan(BigDecimal value) {
            addCriterion("ARFARTICLE >", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFARTICLE >=", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleLessThan(BigDecimal value) {
            addCriterion("ARFARTICLE <", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFARTICLE <=", value, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleIn(List<BigDecimal> values) {
            addCriterion("ARFARTICLE in", values, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleNotIn(List<BigDecimal> values) {
            addCriterion("ARFARTICLE not in", values, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFARTICLE between", value1, value2, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArfarticleNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFARTICLE not between", value1, value2, "arfarticle");
            return (Criteria) this;
        }

        public Criteria andArftitleIsNull() {
            addCriterion("ARFTITLE is null");
            return (Criteria) this;
        }

        public Criteria andArftitleIsNotNull() {
            addCriterion("ARFTITLE is not null");
            return (Criteria) this;
        }

        public Criteria andArftitleEqualTo(String value) {
            addCriterion("ARFTITLE =", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleNotEqualTo(String value) {
            addCriterion("ARFTITLE <>", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleGreaterThan(String value) {
            addCriterion("ARFTITLE >", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleGreaterThanOrEqualTo(String value) {
            addCriterion("ARFTITLE >=", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleLessThan(String value) {
            addCriterion("ARFTITLE <", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleLessThanOrEqualTo(String value) {
            addCriterion("ARFTITLE <=", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleLike(String value) {
            addCriterion("ARFTITLE like", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleNotLike(String value) {
            addCriterion("ARFTITLE not like", value, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleIn(List<String> values) {
            addCriterion("ARFTITLE in", values, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleNotIn(List<String> values) {
            addCriterion("ARFTITLE not in", values, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleBetween(String value1, String value2) {
            addCriterion("ARFTITLE between", value1, value2, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArftitleNotBetween(String value1, String value2) {
            addCriterion("ARFTITLE not between", value1, value2, "arftitle");
            return (Criteria) this;
        }

        public Criteria andArfurlIsNull() {
            addCriterion("ARFURL is null");
            return (Criteria) this;
        }

        public Criteria andArfurlIsNotNull() {
            addCriterion("ARFURL is not null");
            return (Criteria) this;
        }

        public Criteria andArfurlEqualTo(String value) {
            addCriterion("ARFURL =", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlNotEqualTo(String value) {
            addCriterion("ARFURL <>", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlGreaterThan(String value) {
            addCriterion("ARFURL >", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlGreaterThanOrEqualTo(String value) {
            addCriterion("ARFURL >=", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlLessThan(String value) {
            addCriterion("ARFURL <", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlLessThanOrEqualTo(String value) {
            addCriterion("ARFURL <=", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlLike(String value) {
            addCriterion("ARFURL like", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlNotLike(String value) {
            addCriterion("ARFURL not like", value, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlIn(List<String> values) {
            addCriterion("ARFURL in", values, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlNotIn(List<String> values) {
            addCriterion("ARFURL not in", values, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlBetween(String value1, String value2) {
            addCriterion("ARFURL between", value1, value2, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfurlNotBetween(String value1, String value2) {
            addCriterion("ARFURL not between", value1, value2, "arfurl");
            return (Criteria) this;
        }

        public Criteria andArfhitsIsNull() {
            addCriterion("ARFHITS is null");
            return (Criteria) this;
        }

        public Criteria andArfhitsIsNotNull() {
            addCriterion("ARFHITS is not null");
            return (Criteria) this;
        }

        public Criteria andArfhitsEqualTo(BigDecimal value) {
            addCriterion("ARFHITS =", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsNotEqualTo(BigDecimal value) {
            addCriterion("ARFHITS <>", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsGreaterThan(BigDecimal value) {
            addCriterion("ARFHITS >", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFHITS >=", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsLessThan(BigDecimal value) {
            addCriterion("ARFHITS <", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ARFHITS <=", value, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsIn(List<BigDecimal> values) {
            addCriterion("ARFHITS in", values, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsNotIn(List<BigDecimal> values) {
            addCriterion("ARFHITS not in", values, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFHITS between", value1, value2, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfhitsNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ARFHITS not between", value1, value2, "arfhits");
            return (Criteria) this;
        }

        public Criteria andArfadddateIsNull() {
            addCriterion("ARFADDDATE is null");
            return (Criteria) this;
        }

        public Criteria andArfadddateIsNotNull() {
            addCriterion("ARFADDDATE is not null");
            return (Criteria) this;
        }

        public Criteria andArfadddateEqualTo(Date value) {
            addCriterionForJDBCDate("ARFADDDATE =", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("ARFADDDATE <>", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateGreaterThan(Date value) {
            addCriterionForJDBCDate("ARFADDDATE >", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ARFADDDATE >=", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateLessThan(Date value) {
            addCriterionForJDBCDate("ARFADDDATE <", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("ARFADDDATE <=", value, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateIn(List<Date> values) {
            addCriterionForJDBCDate("ARFADDDATE in", values, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("ARFADDDATE not in", values, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ARFADDDATE between", value1, value2, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfadddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("ARFADDDATE not between", value1, value2, "arfadddate");
            return (Criteria) this;
        }

        public Criteria andArfversionIsNull() {
            addCriterion("ARFVERSION is null");
            return (Criteria) this;
        }

        public Criteria andArfversionIsNotNull() {
            addCriterion("ARFVERSION is not null");
            return (Criteria) this;
        }

        public Criteria andArfversionEqualTo(String value) {
            addCriterion("ARFVERSION =", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionNotEqualTo(String value) {
            addCriterion("ARFVERSION <>", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionGreaterThan(String value) {
            addCriterion("ARFVERSION >", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionGreaterThanOrEqualTo(String value) {
            addCriterion("ARFVERSION >=", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionLessThan(String value) {
            addCriterion("ARFVERSION <", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionLessThanOrEqualTo(String value) {
            addCriterion("ARFVERSION <=", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionLike(String value) {
            addCriterion("ARFVERSION like", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionNotLike(String value) {
            addCriterion("ARFVERSION not like", value, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionIn(List<String> values) {
            addCriterion("ARFVERSION in", values, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionNotIn(List<String> values) {
            addCriterion("ARFVERSION not in", values, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionBetween(String value1, String value2) {
            addCriterion("ARFVERSION between", value1, value2, "arfversion");
            return (Criteria) this;
        }

        public Criteria andArfversionNotBetween(String value1, String value2) {
            addCriterion("ARFVERSION not between", value1, value2, "arfversion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}